package com.ymt.fmd.appboot;

import com.sun.jersey.spi.spring.container.servlet.SpringServlet;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class JerseyConfig {

    @Bean
    public ServletRegistrationBean jerseyServlet() {
        ServletRegistrationBean registration = new ServletRegistrationBean(new SpringServlet(), "/fmd/rest/*");
        registration.addInitParameter("com.sun.jersey.config.property.packages", "com.ymt.fmd.platform.web.rest");
        return registration;
    }

}
